package com.hxy.pet.service;


import com.hxy.basic.query.util.PageList;
import com.hxy.basic.service.IBaseService;
import com.hxy.pet.domain.Pet;
import com.hxy.pet.domain.SearchMasterMsg;
import com.hxy.pet.query.SearchMasterMsgQuery;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * 寻找消息service接口
 */
public interface ISearchMasterMsgService extends IBaseService<SearchMasterMsg> {

    /**
     * 查询所有
     * @return
     */
    List<SearchMasterMsg> getAll();

    /**
     * 发布寻主消息
     */
    void publish(SearchMasterMsg searchMasterMsg, HttpServletRequest request);

    /**
     * 已处理消息
     */
    PageList<SearchMasterMsg> processed(SearchMasterMsgQuery searchMasterMsgQuery, HttpServletRequest request);

    /**
     * 待处理消息
     */
    PageList<SearchMasterMsg> pending(SearchMasterMsgQuery searchMasterMsgQuery, HttpServletRequest request);

    /**
     * 用户处理消息
     */
    PageList<SearchMasterMsg> user(SearchMasterMsgQuery searchMasterMsgQuery, HttpServletRequest request);

    /**
     * 处理寻主消息
     */
    void handle(Pet pet,HttpServletRequest request);
}
